package com.exposit.books.service;

import java.util.List;

import com.exposit.books.domain.Book;
import com.exposit.books.domain.Buyer;
import com.exposit.books.domain.Comment;
import com.exposit.books.domain.Order;

public interface UserService {
	Buyer getBuyerById(Long id);
	List<Book> getAllBooks();
	void newOrder(Buyer buyer, Book book, Long count, String address, String payment);
	void cancelOrder(Order order) throws Exception;
	Long returnBook(Order order, Long count) throws Exception;
	List<Order> getOrders(Buyer buyer);
	void addComment(Buyer buyer, Book book, String text);
	void deleteComment(Comment comment);
}
